package com.dms.modules.message.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel(value = "聊天对象VO", description = "聊天对象信息，包含最新消息和未读消息数")
public class ChatContactVO {
    
    @ApiModelProperty("用户ID")
    private Long userId;
    
    @ApiModelProperty("用户昵称")
    private String nickname;
    
    @ApiModelProperty("用户头像")
    private String avatar;
    
    @ApiModelProperty("最新消息ID")
    private Long lastMessageId;
    
    @ApiModelProperty("最新消息内容")
    private String lastMessage;
    
    @ApiModelProperty("最新消息类型：1-文本，2-图片，3-语音")
    private Integer lastMessageType;
    
    @ApiModelProperty("最新消息时间")
    private LocalDateTime lastMessageTime;
    
    @ApiModelProperty("未读消息数")
    private Integer unreadCount;
} 